﻿@{
    Layout = null;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>后台管理</title>
	<style type="text/css">
	body{overflow:hidden;}
	.web-top{height:100px;background:url('../Images/admin/general/vistaBlue.jpg');min-width:800px;}
	.web-top .logo{float:left;padding:20px 0 0 45px;}
	.web-top .nav{float:right;width:600px;}
	.web-top .nav .topInfo{height:70px;float:right;}
	.web-top .nav .userControl{float:right;background:url('../Images/admin/general/bj001.jpg');height:22px;text-aling:center;line-height:22px;border:1px #7dbff3 solid;padding:0 8px;margin:3px 3px 0 0;}
	.web-top .nav .userControl a.blank:link{color:#fff;},.web-top .nav .userControl a.blank:visited{color:#fff;}
	.web-top .nav .menu{}
	.web-top .nav .menu li{float:left;height:30px;width:100px;cursor:pointer;font:bold 14px/30px inherit;text-align:center;}
	.web-top .nav .menu li ul{display:none}
	.web-top .nav .menu li.activeA1{background:url('../Images/admin/general/nav_btnbg_over.gif');color:#0066aa;}
	.web-top .nav .menu li.normalA1{background:url('../Images/admin/general/nav_btnbg.gif');color:#ddffff;}
	#contentTable{width:100%;}
	#leftMenu{background:url('../Images/admin/general/ditLine.gif') repeat-y right 0;width:115px;padding-top:16px;vertical-align:top;}
	#leftMenu li{}
	#leftMenu li{width:115px;height:32px;line-height:32px;text-align:center;cursor:pointer;}
	#leftMenu li.activeC1{background:url('../Images/admin/general/v_tabActiveBg.gif') no-repeat right center;padding:4px 0;}
	#leftMenu li.normalC1{background:url('../Images/admin/general/v_tabOutBg.gif') no-repeat right center;}
	#leftMenu li.msoverC1{background:url('../Images/admin/general/v_tabOverBg.gif') no-repeat right center;}
	#tdContent{border:1px #aaaaaa solid;border-left-width:0}
	</style>
</head>
<body scroll="no">
	<div class="web-top">
	    <div class="logo">
	        <img src="../Images/admin/logo.png" alt="" />
	    </div>
	    <div class="nav">
	        <div class="topInfo">
	        	<div class="userControl">@Html.ActionLink("退出", "Logout", "Admin")</div>
	        </div>
	        <span class="blankH0"></span>
	        <div class="menu">
	            <ul id="topMenu">
	                <li class="normalA1">
						资讯管理
	                    <ul>
                            <li class="normalC1">@Html.ActionLink("资源管理", "ModelList", "", new {target="ifrContent" })</li>
	                        <li class="normalC1">@Html.ActionLink("资源发布", "Publish", new { type="add"}, new { target = "ifrContent" })</li>
                            <li class="normalC1">@Html.ActionLink("广告管理", "ManageAD",null, new { target = "ifrContent" })</li>
	                    </ul>
	                </li>
                    <li class="normalA1">
						网站设置
	                    <ul>
	                        <li class="normalC1">@Html.ActionLink("站点信息", "WebSetting", "", new {target="ifrContent" })</li>
	                    </ul>
	                </li>
	            </ul>
	        </div>
	    </div>
	</div>
	<span class="blankH6"></span>
	<table id="contentTable" cellpadding="0" cellspacing="0">
	    <tr>
	        <td id="leftMenu">
	        
	        </td>
	        <td id="tdContent">
	            <iframe id="ifrContent" name="ifrContent" scrolling="auto" frameborder="0" src="" style="width:100%;height:auto">
					您的浏览器不支持嵌入式框架，或者当前配置为不显示嵌入式框架。
				</iframe>
	        </td>
	    </tr>
	</table>
	<script type="text/javascript">
	    var topMenu=document.getElementById("topMenu");
	    var topLiList=topMenu.getElementsByTagName("li");
	    var leftMenu=document.getElementById("leftMenu");
	    var ifrContent=document.getElementById("ifrContent");
	    for(var i=0;i<topLiList.length;i++){
	        var li=topLiList[i];
	        if(li.className!="normalA1")continue;
	        li.onmouseover=function(){
	            this.className="activeA1";
	        }
	        li.onmouseout=function(){
	            if(this.parentNode.activeTab!=this)this.className="normalA1";
	        }
	        li.onclick=function(){
	            if(this.parentNode.activeTab)this.parentNode.activeTab.className="normalA1";
	            this.parentNode.activeTab=this;
	            this.className="activeA1";
	            initLeftMenu(this);
	        }
	        if(i==0){
	            li.parentNode.activeTab=li;
	            li.className="activeA1";
	            initLeftMenu(li);
	        }
	    }
	    function initLeftMenu(activeObj){
	        var uls=activeObj.getElementsByTagName("ul");
	        if(uls.length>0){
	            leftMenu.innerHTML=uls[0].outerHTML;
	        }
	        else{
	            leftMenu.innerHTML="";
	            return;
	        }
	        var lis=leftMenu.getElementsByTagName("li");
	        for(var i=0;i<lis.length;i++){
	            var li=lis[i];
	            li.onmouseover=function(){
	                if(this.parentNode.activeTab!=this)this.className="msoverC1";
	            }
	            li.onmouseout=function(){
	                if(this.className=="msoverC1")this.className="normalC1";
	            }
	            li.onclick=function(){
	                if(this.parentNode.activeTab)this.parentNode.activeTab.className="normalC1";
	                this.parentNode.activeTab=this;
	                this.className="activeC1";
	                var aList=this.getElementsByTagName("a");
	                aList.onclick=function(){return false;}
	                ifrContent.src=aList[0].href;
	            }
	            if(i==0){
	                li.parentNode.activeTab=li;
	                li.className="activeC1";
	                var aList=li.getElementsByTagName("a");
	                aList.onclick=function(){return false;}
	                ifrContent.src=aList[0].href;
	            }
	        }
	    }
	    function onresize(){
	        document.getElementById("contentTable").style.height=(document.documentElement.clientHeight - 110)+"px";
	        document.getElementById("ifrContent").style.height=(document.documentElement.clientHeight - 110)+"px";
	    }
	    document.body.onresize=onresize;
	    document.body.style.cssText="overflow:hidden;";
	    document.body.scroll="no";
	    onresize();
	</script>
</body>

</html>
@Styles.Render("~/Content/admin/base.css")